package com.bbs.model;

import lombok.Data;

@Data
public class UserParams {

    private String username;

    private String password;

    private Integer page;

    private Integer limit;

    public Integer getPage() {
        return ( page - 1) * this.limit;
    }

    public void setPage(Integer page) {
        this.page = page;
    }
}
